<?php
/**
 * CreateTime: 2024/1/16 14:14
 * User:LinQ
 */

namespace App\Http\Controllers\Goods;

use App\Http\Controllers\BasicInterfaceController;
use App\Http\Requests\System\ListRequest;
use App\Http\Service\Goods\GoodsService;

class GoodsController implements BasicInterfaceController
{

    /**
     * @return void
     * 单领谷子列表
     */
    public function getGoodsListV1(){
        $request = request()->only('page','page_size','filters','desc');
        (new ListRequest())->check($request);
        (new GoodsService())->getGoodsListV1($request);
    }

    /**
     * 拼团列表
     */
    public function getGoodsListV2(){
        $request = request()->only('page','page_size','filters','desc');
        (new ListRequest())->check($request);
        (new GoodsService())->getGoodsListV2($request);
    }

    public function getList()
    {
        $request = request()->only('page','page_size','filters','desc');
        (new ListRequest())->check($request);
        (new GoodsService())->getList($request);
    }

    public function getSelect()
    {

    }

    public function getSelectHasPage()
    {

    }

    public function getInfo($id)
    {

    }

    public function create()
    {

    }

    public function fakeDelete($id)
    {

    }

    public function fakeDeleteByIds($ids)
    {

    }

    public function delete()
    {

    }

    public function update($id)
    {

    }
}
